-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: argocd notification controller app client permission issue #16057
fix: argocd notification controller app client permission issue #16057
Conversation
… namespaced appClient Signed-off-by: May Zhang <may_zhang@intuit.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #16057 +/- ##
==========================================
- Coverage 49.55% 49.53% -0.03%
==========================================
Files 269 269
Lines 46595 46627 +32
==========================================
+ Hits 23091 23097 +6
- Misses 21232 21259 +27
+ Partials 2272 2271 -1
☔ View full report in Codecov by Sentry. |
if len(applicationNamespaces) == 0 { | ||
appClient = namespaceableAppClient.Namespace(namespace) | ||
} | ||
appClient = client.Resource(applications) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line needs to be removed. Maybe we forgot to clean it up during the fix..
Signed-off-by: May Zhang <may_zhang@intuit.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…oproj#16057) * if applicationNamespaces is not provided as input parameter, then use namespaced appClient Signed-off-by: May Zhang <may_zhang@intuit.com> * fix go lint error Signed-off-by: May Zhang <may_zhang@intuit.com> --------- Signed-off-by: May Zhang <may_zhang@intuit.com>
/cherry-pick release-2.9 |
/cherry-pick release-2.8 |
/cherry-pick release-2.7 |
/cherry-pick release-2.6 |
) (#16159) * if applicationNamespaces is not provided as input parameter, then use namespaced appClient * fix go lint error --------- Signed-off-by: May Zhang <may_zhang@intuit.com> Co-authored-by: May Zhang <may_zhang@intuit.com>
) (#16160) * if applicationNamespaces is not provided as input parameter, then use namespaced appClient * fix go lint error --------- Signed-off-by: May Zhang <may_zhang@intuit.com> Co-authored-by: May Zhang <may_zhang@intuit.com>
) (#16161) * if applicationNamespaces is not provided as input parameter, then use namespaced appClient * fix go lint error --------- Signed-off-by: May Zhang <may_zhang@intuit.com> Co-authored-by: May Zhang <may_zhang@intuit.com>
…oproj#16057) * if applicationNamespaces is not provided as input parameter, then use namespaced appClient Signed-off-by: May Zhang <may_zhang@intuit.com> * fix go lint error Signed-off-by: May Zhang <may_zhang@intuit.com> --------- Signed-off-by: May Zhang <may_zhang@intuit.com>
) (#16166) * if applicationNamespaces is not provided as input parameter, then use namespaced appClient * fix go lint error --------- Signed-off-by: May Zhang <may_zhang@intuit.com>
…oproj#16057) * if applicationNamespaces is not provided as input parameter, then use namespaced appClient Signed-off-by: May Zhang <may_zhang@intuit.com> * fix go lint error Signed-off-by: May Zhang <may_zhang@intuit.com> --------- Signed-off-by: May Zhang <may_zhang@intuit.com> Signed-off-by: jmilic1 <70441727+jmilic1@users.noreply.github.com>
…oproj#16057) * if applicationNamespaces is not provided as input parameter, then use namespaced appClient Signed-off-by: May Zhang <may_zhang@intuit.com> * fix go lint error Signed-off-by: May Zhang <may_zhang@intuit.com> --------- Signed-off-by: May Zhang <may_zhang@intuit.com>
…oproj#16057) * if applicationNamespaces is not provided as input parameter, then use namespaced appClient Signed-off-by: May Zhang <may_zhang@intuit.com> * fix go lint error Signed-off-by: May Zhang <may_zhang@intuit.com> --------- Signed-off-by: May Zhang <may_zhang@intuit.com>
…oproj#16057) * if applicationNamespaces is not provided as input parameter, then use namespaced appClient Signed-off-by: May Zhang <may_zhang@intuit.com> * fix go lint error Signed-off-by: May Zhang <may_zhang@intuit.com> --------- Signed-off-by: May Zhang <may_zhang@intuit.com>
When argocd notification controller starts without --application-namespaces, following error is in the log
cannot list resource "applications" in API group "argoproj.io" at the cluster scope
Checklist: